<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        {{info}}
        <!--<input type="button" value="按钮" @click="fc()">-->
        <input type="button" value="按钮" v-on:click="fc()">
    </div>
</body>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            info:"事件绑定",
        },
        methods:{
            fc(){
                alert("按钮被点击了。哈哈！")
                v.info = "今天圣诞节！";
            }
        }
    })
</script>
</html>
